<?php


namespace app\common\validate;


use think\Validate;

class Record extends Validate
{
    protected $rule=[
        'nickname|昵称'=>'require',
        'edu|学历'=>'require',
        'strong_point|擅长软件'=>'require',
        'student_id|学生'=>'require',
        'price|价格'=>'require',
        'send_price|派单价格'=>'require',
        'name|名称'=>'require',
        'major|专业'=>'require',
        'school_level|学校水平'=>'require',
        'information|资料'=>'require',
        'middle_date|中期检查'=>'require',
        'end_date|定稿时间'=>'require',
        'type|类型'=>'require',
    ];
    protected $message=[
        'nickname.require'=>'请输入昵称',
        'edu.require'=>'请选择学历',
        'strong_point.require'=>'请填写擅长软件',
        'student_id.require'=>'请选择学生',
        'price.require'=>'请填写价格',
        'send_price.require'=>'请填写派单价格',
        'name.require'=>'请填写名称',
        'major.require'=>'请填写专业',
        'school_level.require'=>'请选择学校水平',
        'information.require'=>'请填写所有资料',
        'middle_date.require'=>'请填写中期检查时间',
        'end_date.require'=>'请填写定稿时间',
    ];
    protected $scene=[
        'register_teacher'=>['nickname','edu','strong_point'],
        'create_order'=>['student_id','price','send_price','type','school_level','information','middle_date','end_date','major','name'],
    ];
}